package com.xydtech.ecard.custgroup.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片行业客群信息对象 ecard_customer_group_merchant
 *
 * @author yuzhiguo
 * @date 2024-11-27 下午4:15
 */
public class EcardApiCustomerGroupMerchant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 客群类型 */
    @Excel(name = "客群类型", dictType = "ecard_customer_group_type")
    private String customerGroupType;

    /** 客群关联id */
    @Excel(name = "客群关联id")
    private Long customerId;

    /** 社团组织ID */
    @Excel(name = "社团组织ID")
    private Long organizeId;

    /** 个体工商户、企业、新型农业主体id */
    @Excel(name = "个体工商户、企业、新型农业主体id")
    private Long merchantId;

    /** 商户类型 */
    @Excel(name = "商户类型")
    private String merchantType;

    /** 是否归属社团组织 */
    @Excel(name = "是否归属社团组织")
    private String isOrganize;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long creatorId;

    /** 管户人ID */
    @Excel(name = "管户人ID")
    private Long managementPersonnelId;

    /** 创建人机构ID */
    @Excel(name = "创建人机构ID")
    private Long deptId;

    /** 法人机构ID */
    @Excel(name = "法人机构ID")
    private Long corpId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 状态0停用,1启用 */
    @Excel(name = "状态0停用,1启用")
    private Integer state;

    /** 字典机构查询条件 */
    private Long dictDeptId;

    /** 拜访次数 */
    private String visitNumber;
    /** 客户名称 */
    private String licenseName;
    /** 门面名称 */
    private String handName;
    /** 最新拜访时间 */
    private Date lastVisitDate;
    /** 联系人手机号 */
    private String phone;
    /** 经纬度坐标 */
    private String coordinate;
    /** 联系人姓名 */
    private String name;
    /** 客群名称 */
    private String customerGroupName;
    /** 组织名称 */
    private String organizeName;
    /** 地图地址 */
    private String mapAddress;
    /** 是否自己 1全部，2自己 */
    private String oneself;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getCustomerGroupType() {
        return customerGroupType;
    }

    public void setCustomerGroupType(String customerGroupType) {
        this.customerGroupType = customerGroupType;
    }

    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId()
    {
        return customerId;
    }
    public void setOrganizeId(Long organizeId)
    {
        this.organizeId = organizeId;
    }

    public Long getOrganizeId()
    {
        return organizeId;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }
    public void setMerchantType(String merchantType)
    {
        this.merchantType = merchantType;
    }

    public String getMerchantType()
    {
        return merchantType;
    }

    public String getIsOrganize() {
        return isOrganize;
    }

    public void setIsOrganize(String isOrganize) {
        this.isOrganize = isOrganize;
    }

    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setManagementPersonnelId(Long managementPersonnelId)
    {
        this.managementPersonnelId = managementPersonnelId;
    }

    public Long getManagementPersonnelId()
    {
        return managementPersonnelId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setCorpId(Long corpId)
    {
        this.corpId = corpId;
    }

    public Long getCorpId()
    {
        return corpId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public Long getDictDeptId() {
        return dictDeptId;
    }

    public void setDictDeptId(Long dictDeptId) {
        this.dictDeptId = dictDeptId;
    }

    public String getVisitNumber() {
        return visitNumber;
    }

    public void setVisitNumber(String visitNumber) {
        this.visitNumber = visitNumber;
    }

    public String getLicenseName() {
        return licenseName;
    }

    public void setLicenseName(String licenseName) {
        this.licenseName = licenseName;
    }

    public String getHandName() {
        return handName;
    }

    public void setHandName(String handName) {
        this.handName = handName;
    }

    public Date getLastVisitDate() {
        return lastVisitDate;
    }

    public void setLastVisitDate(Date lastVisitDate) {
        this.lastVisitDate = lastVisitDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCustomerGroupName() {
        return customerGroupName;
    }

    public void setCustomerGroupName(String customerGroupName) {
        this.customerGroupName = customerGroupName;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public String getMapAddress() {
        return mapAddress;
    }

    public void setMapAddress(String mapAddress) {
        this.mapAddress = mapAddress;
    }

    public String getOneself() {
        return oneself;
    }

    public void setOneself(String oneself) {
        this.oneself = oneself;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("customerGroupType", getCustomerGroupType())
                .append("customerId", getCustomerId())
                .append("organizeId", getOrganizeId())
                .append("merchantId", getMerchantId())
                .append("merchantType", getMerchantType())
                .append("isOrganize", getIsOrganize())
                .append("creatorId", getCreatorId())
                .append("managementPersonnelId", getManagementPersonnelId())
                .append("deptId", getDeptId())
                .append("corpId", getCorpId())
                .append("creationTime", getCreationTime())
                .append("state", getState())
                .append("remark", getRemark())
                .append("dictDeptId", getDictDeptId())
                .append("visitNumber", getVisitNumber())
                .append("licenseName", getLicenseName())
                .append("handName", getHandName())
                .append("lastVisitDate", getLastVisitDate())
                .append("phone", getPhone())
                .append("coordinate", getCoordinate())
                .append("name", getName())
                .append("customerGroupName", getCustomerGroupName())
                .append("organizeName", getOrganizeName())
                .append("mapAddress", getMapAddress())
                .append("oneself", getOneself())
                .toString();
    }
}
